#ifndef READYQUEUE_H
#define READYQUEUE_H
#include <my_header.h>

typedef struct prams_s{
    char * ip;
    char * port;
    char * JWT;
    int sockfd;
    char username[128];
    char command[1024];
    char p1[1024];
    char p2[1024];
}prams_t;


typedef struct qnode{
    prams_t * pram;
    struct qnode * next;
}QueueNode;


typedef struct {
    QueueNode * front;
    QueueNode * rear;
    int size;
}ReadyQueue;


int readyQueueInit(ReadyQueue * ry);

void addQueueNode(ReadyQueue * ry,prams_t * pram);

prams_t * deleteQueueNode(ReadyQueue * ry);

#endif
